package com.gqj.meter.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gqj.common.annotation.Excel;
import com.gqj.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 数据备份记录对象 sys_data_backup_record
 *
 * @author lxq
 * @date lxq-01-09
 */
public class SysDataBackupRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 备份id */
    @ApiModelProperty("备份id")
    private Long backupId;

    /** 备份路径 */
    @ApiModelProperty("备份路径")
    @Excel(name = "备份路径")
    private String backupUrl;

    /** 备份类型0-自动1-手动 */
    @ApiModelProperty("备份类型")
    @Excel(name = "备份类型0-自动1-手动")
    private Integer backupType;

    /** 操作人 */
    @ApiModelProperty("操作人")
    @Excel(name = "操作人")
    private Long backupUserId;

    /** 备份时间 */
    @ApiModelProperty("备份时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "备份时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date backupTime;

    /** 删除标识0-否1-是 */
    @ApiModelProperty("删除标识")
    @Excel(name = "删除标识0-否1-是")
    private Integer delflag;

    /** 用户昵称 */
    @ApiModelProperty("用户昵称")
    @Excel(name = "工号")
    private String nickName;

    public void setBackupId(Long backupId)
    {
        this.backupId = backupId;
    }

    public Long getBackupId()
    {
        return backupId;
    }
    public void setBackupUrl(String backupUrl)
    {
        this.backupUrl = backupUrl;
    }

    public String getBackupUrl()
    {
        return backupUrl;
    }
    public void setBackupType(Integer backupType)
    {
        this.backupType = backupType;
    }

    public Integer getBackupType()
    {
        return backupType;
    }

    public Long getBackupUserId() {
        return backupUserId;
    }

    public void setBackupUserId(Long backupUserId) {
        this.backupUserId = backupUserId;
    }

    public void setBackupTime(Date backupTime)
    {
        this.backupTime = backupTime;
    }

    public Date getBackupTime()
    {
        return backupTime;
    }
    public void setDelflag(Integer delflag)
    {
        this.delflag = delflag;
    }

    public Integer getDelflag()
    {
        return delflag;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("backupId", getBackupId())
            .append("backupUrl", getBackupUrl())
            .append("backupType", getBackupType())
            .append("backupUserId", getBackupUserId())
            .append("backupTime", getBackupTime())
            .append("remark", getRemark())
            .append("delflag", getDelflag())
            .toString();
    }
}
